class ChooseMode extends eui.Component implements eui.UIComponent {
	public constructor() {
		super();
	}

	protected partAdded(partName: string, instance: any): void {
		super.partAdded(partName, instance);
	}


	protected childrenCreated(): void {
		super.childrenCreated();
		this.init();
	}

	public btn_jingdian: eui.Group;
	public btn_dadian: eui.Group;
	public btn_home:eui.Image;

	private init() {
		this.btn_jingdian.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
			SceneManager.Instance.switchScene(SceneManager.Instance.selectLevel);
		}, this)
		this.btn_dadian.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
			SceneManager.Instance.switchScene(SceneManager.Instance.dadian);
		}, this)
		this.btn_home.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
			SceneManager.Instance.switchScene(SceneManager.Instance.startGameScene);
		}, this)

	}


}